package com.atguigu.yygh.oss.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/*==========================================
      时 间:   2022-04-24
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
 ==========================================*/
@ConfigurationProperties(prefix = "oss.file")
@PropertySource(value = {"classpath:oss.properties"}) //1.@PropertySource不支持yml文件2.@PropertySource不能和@EnableConfigurationProperties一起使用
@Component
@Data
public class OSSProperties {

    private String endpoint;
    private String keyid;
    private String keysecret;
    private String bucketname;

}
